export default {
    namespaced: true,
    state: {
        title: '',
        content: '',
    },
    getters: {
        title: (state, getters) => {
            return state.title;
        },
        content: (state, getters) => {
            return state.content;
        },
    },
    mutations: {
        setTitle (state, title) {
            state.title = title;
        },
        setContent (state, content) {
            state.content = content;
        },
    },
    actions: {
        setTitle: function ({ commit }, title) {
            commit('setTitle', title);
        },
        setContent: function ({ commit }, content) {
            commit('setContent', content);
        },
    },
};
